import { defineConfig, loadEnv } from '../dist/index.mjs';

export default defineConfig(({ mode }) => {
    const env = loadEnv(mode, ['APP_']);
    return {
        env,
        // pages: [
        //     { name: 'main', entry: 'src/main.tsx', html: { template: 'index.html' } },
        //     { name: 'admin', entry: 'src/admin.tsx', html: { template: 'public/admin.html' } }
        // ],
        devServer: { port: 3100, open: true }
    };
});